package com.git.smp.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.git.smp.entity.SmpPermission;

public interface SmpPermissionMapper {
    int deleteByPrimaryKey(String permissionId);

    int insert(SmpPermission record);

    int insertSelective(SmpPermission record);

    SmpPermission selectByPrimaryKey(String permissionId);

    int updateByPrimaryKeySelective(SmpPermission record);

    int updateByPrimaryKey(SmpPermission record);
    
    List<SmpPermission> getPermissionListByPage(@Param("permissionName") String permissionName);
    
    List<SmpPermission> getPermissionList();

	List<SmpPermission> getPermissionListByUserName(@Param("userName")  String userName);
}